/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 文件上传示例Entity
 * @author dh
 * @version 2017-07-21
 */
public class SceneRouterPort extends DataEntity<SceneRouterPort> {
	
	private static final long serialVersionUID = 1L;
	private String routerId;		// 路由id
	private String portId;		// 端口id
	private String ip;		// 路由IP
	
	public SceneRouterPort() {
		super();
	}

	public SceneRouterPort(String id){
		super(id);
	}

	@Length(min=1, max=64, message="路由id长度必须介于 1 和 64 之间")
	public String getRouterId() {
		return routerId;
	}

	public void setRouterId(String routerId) {
		this.routerId = routerId;
	}
	
	@Length(min=1, max=64, message="端口id长度必须介于 1 和 64 之间")
	public String getPortId() {
		return portId;
	}

	public void setPortId(String portId) {
		this.portId = portId;
	}
	
	@Length(min=0, max=64, message="路由IP长度必须介于 0 和 64 之间")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
}